<html>
<head><meta charset="utf-8"><title>build issue: libLLVM not found · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20issue.3A.20libLLVM.20not.20found.html">build issue: libLLVM not found</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="216812388"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20issue%3A%20libLLVM%20not%20found/near/216812388" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Hannah McLaughlin <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20issue.3A.20libLLVM.20not.20found.html#216812388">(Nov 15 2020 at 20:29)</a>:</h4>
<p>Hi there, I'm new to rustc contribution. I was preparing a changeset for a PR, so updated my fork from upstream. However, I now cannot build as the build system can't seem to find libLLVM (which I am not building myself, and instead getting from CI):</p>
<p><code>stage1/bin/rustc: error while loading shared libraries: libLLVM-11-rust-1.49.0-nightly.so: cannot open shared object file: No such file or directory</code></p>
<p>This happens even if I remove the build directory and start again. I do have this .so file at:<br>
<code>build/x86_64-unknown-linux-gnu/ci-llvm/lib/libLLVM-11-rust-1.49.0-nightly.so</code></p>
<p>Is there something wrong with <code>master</code> or am I missing something? My <code>config.toml</code> is </p>
<div class="codehilite" data-code-language="TOML"><pre><span></span><code><span class="c1"># Includes one of the default files in src/bootstrap/defaults</span>
<span class="n">profile</span> <span class="o">=</span> <span class="s">"compiler"</span>
<span class="n">changelog-seen</span> <span class="o">=</span> <span class="mi">2</span>
</code></pre></div>
<p>and the commit hash of the project is 603ab5bd</p>



<a name="216812441"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20issue%3A%20libLLVM%20not%20found/near/216812441" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20issue.3A.20libLLVM.20not.20found.html#216812441">(Nov 15 2020 at 20:30)</a>:</h4>
<p>Recent bug</p>



<a name="216812448"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20issue%3A%20libLLVM%20not%20found/near/216812448" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20issue.3A.20libLLVM.20not.20found.html#216812448">(Nov 15 2020 at 20:30)</a>:</h4>
<p>Let me find the fix PR</p>



<a name="216812457"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20issue%3A%20libLLVM%20not%20found/near/216812457" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20issue.3A.20libLLVM.20not.20found.html#216812457">(Nov 15 2020 at 20:30)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/pull/79074">https://github.com/rust-lang/rust/pull/79074</a></p>



<a name="216812468"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20issue%3A%20libLLVM%20not%20found/near/216812468" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20issue.3A.20libLLVM.20not.20found.html#216812468">(Nov 15 2020 at 20:31)</a>:</h4>
<p>You can likely just manually apply the fix and it should work</p>



<a name="216812490"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20issue%3A%20libLLVM%20not%20found/near/216812490" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Hannah McLaughlin <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20issue.3A.20libLLVM.20not.20found.html#216812490">(Nov 15 2020 at 20:31)</a>:</h4>
<p>Thank you, I'll give it a go now</p>



<a name="216812494"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20issue%3A%20libLLVM%20not%20found/near/216812494" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20issue.3A.20libLLVM.20not.20found.html#216812494">(Nov 15 2020 at 20:31)</a>:</h4>
<p><span class="user-mention" data-user-id="232545">@Joshua Nelson</span> btw if you feel comfortable, feel free to r+ the PR</p>



<a name="216815127"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20issue%3A%20libLLVM%20not%20found/near/216815127" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20issue.3A.20libLLVM.20not.20found.html#216815127">(Nov 15 2020 at 21:25)</a>:</h4>
<p>done :)</p>



<a name="216815128"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20issue%3A%20libLLVM%20not%20found/near/216815128" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20issue.3A.20libLLVM.20not.20found.html#216815128">(Nov 15 2020 at 21:25)</a>:</h4>
<p>thanks for the quick fix!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>